<template>
    <div class="child">
        大儿子: {{title}} {{jiachan}}
        <button @click="$emit('hbb', '爸爸爸爸')">click</button>
        <button @click="$bus.$emit('ganfan', '走，吃饭')">ganfan</button>
        <Sun title="王耀"/>
    </div>
</template>

<script>
import Sun from './Sun.vue'
export default {
    props: ["title"],
    inject: ['jiachan'],
    components: {
        Sun
    }
}
</script>

<style>

</style>